package Project2;

public class Account {

	public String Name;
	public String Account;
	public String Phone;
	public String SSN;
	public double BeginBalance;
	public String Type;
	public double NewBalance;
	public double InterestGained;
	
	public Account()
	{
		
	}
	
	/*
	 * This declares a basic account type
	 */
	public Account(String NewName, String NewAccount, String NewPhone, String NewSSN, double NewBeginBalance)
	{
		Name = NewName;
		Account = NewAccount;
		Phone = NewPhone;
		SSN = NewSSN;
		BeginBalance = NewBeginBalance;
		Type = "Unknown Account Type";
	}

	/*
	 * This function is the base interest calculator it defaults to zero Interest
	 */
	public void CalcInt()
	{		
		double InterestRate = 0;
		InterestGained = (BeginBalance * InterestRate);
		NewBalance = BeginBalance + (BeginBalance * InterestRate);
	}
	
}

